import request from "@/utils/request";

// 查询安环资产详情列表
export function listBizAnhuanZicanDetails(query) {
  return request({
    url: "/biz/bizAnhuanZicanDetails/list",
    method: "get",
    params: query,
  });
}

// 查询安环资产详情详细
export function getBizAnhuanZicanDetails(id) {
  return request({
    url: "/biz/bizAnhuanZicanDetails/" + id,
    method: "get",
  });
}

// 新增安环资产详情
export function addBizAnhuanZicanDetails(data) {
  return request({
    url: "/biz/bizAnhuanZicanDetails",
    method: "post",
    data: data,
  });
}

// 修改安环资产详情
export function updateBizAnhuanZicanDetails(data) {
  return request({
    url: "/biz/bizAnhuanZicanDetails",
    method: "put",
    data: data,
  });
}

// 删除安环资产详情
export function delBizAnhuanZicanDetails(id) {
  return request({
    url: "/biz/bizAnhuanZicanDetails/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAnhuanZicanDetails/findMaxSort",
    method: "get",
  });
}
// 导出安环资产详情
export function exportBizAnhuanZicanDetails(query) {
  return request({
    url: "/biz/bizAnhuanZicanDetails/export",
    method: "get",
    params: query,
  });
}
